import request from '@/utils/request'

// 查询教练信息列表
export function listCoachmanagement(query) {
  return request({
    url: '/coach/coachmanagement/list',
    method: 'get',
    params: query
  })
}

// 查询教练信息详细
export function getCoachmanagement(id) {
  return request({
    url: '/coach/coachmanagement/' + id,
    method: 'get'
  })
}

// 新增教练信息
export function addCoachmanagement(data) {
  return request({
    url: '/coach/coachmanagement',
    method: 'post',
    data: data
  })
}

// 修改教练信息
export function updateCoachmanagement(data) {
  return request({
    url: '/coach/coachmanagement',
    method: 'put',
    data: data
  })
}

// 删除教练信息
export function delCoachmanagement(id) {
  return request({
    url: '/coach/coachmanagement/' + id,
    method: 'delete'
  })
}
